package cn.edu.ctbu.lddweb.controller;
import cn.edu.ctbu.lddweb.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 学生信息管理系统
 */
@Controller
public class IndexController{
    @Autowired
    private UserService userService;

    //学生信息管理系统-超级管理员
    @RequestMapping("/index")
    public String index(Model model,String username, ModelMap map){
        map.put("username",username);
        return "/index";
    }

    //学生信息管理系统-教师
    @RequestMapping("/indexteacher")
    public String indexteacher(Model model,String username, ModelMap map){
        map.put("username",username);
        return "/indexteacher";
    }

    //学生信息管理系统-学生
    @RequestMapping("/indexstudent")
    public String indexstudent(Model model,String username, ModelMap map){
        map.put("username",username);
        return "/indexstudent";
    }





}
